﻿@model SoftHotel.Models.ReservaHab

@{
    ViewBag.Title = "Index";
}


@using (Html.BeginForm()) 
{
    <h1><strong>Reserva de Habitaciones</strong></h1>
        <h2>
        Agregar<hr align="left" width="80" noshade="noshade" />   
    </h2>
    <br />
    <input type="submit" value="Agregar" name="button" style = " margin-left : 100px;"/>  	
        <br /> 
        <h2>
        Buscar<hr align="left" width="80" noshade="noshade" />   
    </h2>
    <table id="MainContent_Table1" rules="none" style="border-color: Black; width: 450px; margin-bottom: 0px;">
	<tbody>
	<tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 220px;" align="">Número de reserva</td>
		<td style="width: 220px;">		
        <!--Campos para búsqueda: numeroReserva, nombreCliente, numeroDocumento, fechaReserva, tipoReserva-->
        @Html.TextBoxFor(Model => Model.numeroReserva)
		</td>
	</tr>
	<tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 220px;">Cliente </td>
		<td style="width: 220px;">
		@Html.TextBoxFor(Model => Model.idCliente)
		</td>		
	</tr>
	<tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 123px;">Fecha de Reserva </td>
		<td style="width: 194px;">@Html.TextBoxFor(Model => Model.fechaCreacion)
        </td>
		<td></td>
	</tr>
    <tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 123px;">Estado </td>
		<td><div>    	 
             @Html.DropDownListFor(model => model.estado, new[]{
                     new SelectListItem { Value = "0", Text = "Reservada" },
                new SelectListItem { Value = "1", Text = "Confirmada" },
                new SelectListItem { Value = "2", Text = "Iniciada" },
                new SelectListItem { Value = "3", Text = "Finalizada" },
                new SelectListItem { Value = "4", Text = "Anulada" },
                new SelectListItem { Value = "5", Text = "Todas" }
                    })
		</div></td>
	</tr>
</tbody>
</table>
<br />
<input value="Buscar" type="submit" name = "button" style = " margin-left : 100px;"/>
}